/**
 * @file ArmorBase.cpp
 * @brief
 * @author LiuZhihao (2488288779@qq.com)
 * @date 2023-12-10
 *
 * @copyright Copyright (C) 2023, HITCRT_VISION, all rights reserved.
 *
 * @par 修改日志:
 * <table>
 * <tr><th>Date       <th>Author  <th>Description
 * <tr><td>2023-12-10 <td>LiuZhihao  <td>
 * </table>
 */
#include "ArmorBase.h"

namespace hitcrt {
void LightBar::setParam(const float length, const float width, const float contourArea,
                        const float colorRatio, const cv::Point2f directVec,
                        const std::vector<cv::Point> &contour, const std::vector<cv::Point2f> &insidePoints,
                        const cv::RotatedRect rotatedRect, const cv::Point2f top, const cv::Point2f bottom,
                        const cv::Point2f center) {
    m_length = length;
    m_width = width;
    m_contourArea = contourArea;
    m_colorRatio = colorRatio;
    m_directUnitVec = directVec;
    // m_contour = contour;
    // m_insidePoints = insidePoints; //灯条轮廓内包含的点
    m_rotatedRect = rotatedRect;
    m_top = top;        //上端点
    m_bottom = bottom;  //下端点
    m_center = center;  //中心点
}


   
}  // namespace hitcrt